package com.service.impl;

import com.dao.VoucherDao;
import com.dao.impl.VoucherDaoImpl;
import com.pojo.VouInsEnt;
import com.pojo.VouInsEntUser;
import com.service.VoucherService;
import com.entry.Voucher;
import com.util.PageHelper;

import java.util.ArrayList;

public class VoucherServiceImpl implements VoucherService {
    VoucherDao voucherDao=new VoucherDaoImpl();
    @Override
    public ArrayList selectQuery(Voucher voucher) {
        return null;
    }

    @Override
    public int selectQuerySize(VouInsEnt vouInsEnt, int Max, int Min) {

        return voucherDao.selectQuerySize(vouInsEnt,Max,Min);
    }

    @Override
    public ArrayList selectQuery() {
        return null;
    }

    @Override
    public int insertVoucher(Voucher voucher) {
        return voucherDao.insertVoucher(voucher);
    }

    @Override
    public ArrayList selectQueryByNo(String no) {
        return voucherDao.selectQueryByNo(no);
    }

    @Override
    public ArrayList selectQuery(VouInsEnt vouInsEnt, PageHelper pageHelper, double Max, double Min) {
        return voucherDao.selectQuery(vouInsEnt,pageHelper,Max,Min);
    }


    @Override
    public ArrayList selectQuery(VouInsEntUser vouInsEntUser) {
        return voucherDao.selectQuery(vouInsEntUser);
    }

    @Override
    public ArrayList<Voucher> selectAllByNo(String no) {
        return voucherDao.selectAllByNo(no);
    }

    @Override
    public int updateVou(Voucher voucher) {
        return voucherDao.updateVou(voucher);
    }
}
